home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / source / zendisk1 / lst2-3.asm < prev    next >
Encoding:
Assembly Source File  |  1990-02-15  |  438 b   |  27 lines

  1. ;
  2. ; *** Listing 2-3 ***
  3. ;
  4. ; Measures the performance of 1000 loads of AL from
  5. ; memory. (Use by renaming to TESTCODE, which is
  6. ; included by PZTEST.ASM (Listing 2-2). PZTIME.BAT
  7. ; (Listing 2-4) does this, along with all assembly
  8. ; and linking.)
  9. ;
  10.     jmp    Skip    ;jump around defined data
  11. ;
  12. MemVar    db    ?
  13. ;
  14. Skip:
  15. ;
  16. ; Start timing.
  17. ;
  18.     call    ZTimerOn
  19. ;
  20.     rept    1000
  21.     mov    al,[MemVar]
  22.     endm
  23. ;
  24. ; Stop timing.
  25. ;
  26.     call    ZTimerOff
  27.